import axios from "../../ngame/axios/axios.js"

let http = axios.create({
    baseURL:"http://192.168.2.227:8080",
    headers:{
        Authorization:"123456"
    }
});

export const JGet = async (url,data = {}) => {
    let res = (await http.get(url,{params:data})).data;
    return res;
}

export const JPost = async (url,data = {}) => {
    let res = (await http.post(url,data)).data;
    return res;
}
